import 'package:flutter/material.dart';

class MyTextDemo extends StatelessWidget {
  const MyTextDemo({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(left: 16, right: 16,bottom: 16),
      color: Colors.white24,
      alignment: Alignment.center,
      child: SingleChildScrollView(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              "hello flutter",
              style: TextStyle(
                  fontSize: 32.0,
                  fontWeight: FontWeight.w300, // 加粗
                  letterSpacing: 3.0 // 字间距
              ),
              textAlign: TextAlign.center,
            ),
            SizedBox(
              height: 15,
            ),
            Text(
              "Where the world builds software",
              style: TextStyle(
                  fontSize: 32.0,
                  fontWeight: FontWeight.bold,
                  fontFamily: "Roboto"),
              maxLines: 1,
              overflow: TextOverflow.ellipsis,
            ),
            SizedBox(
              height: 15,
            ),
            Text(
              "Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.bold, // 加粗
                  letterSpacing: 3.0, // 字间距
                  wordSpacing: 3.0),
            ),
            Text(
              "Build on what's been built",
              style: TextStyle(
                  fontSize: 32.0,
                  fontWeight: FontWeight.bold,
                  fontFamily: "Roboto"),
              maxLines: 1,
              overflow: TextOverflow.ellipsis,
            ),
            SizedBox(
              height: 15,
            ),
            Text(
              "Write less code thanks to the world's largest software package registry. Find the best community-approved projects to accelerate your work, then share it with the world with npm and GitHub Packages. \n Better code starts with pull requests—conversations around your code where you can experiment, squash bugs, and build new features. \n Know when your pull request is ready to merge when everything’s green. Reviews approved? Check. Tests passing? Check check. No conflicts? Ship it already.",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.bold, // 加粗
                  letterSpacing: 3.0, // 字间距
                  wordSpacing: 3.0),
            ),
          ],
        ),
      ),
    );
  }
}